package org.CurrencyService.main;
import java.util.Calendar;
import java.util.List;

import org.CurrencyDAO.DTO.CurrencyExchangeDTO;
import org.CurrencyDAO.DTO.CurrencyType;
import org.CurrencyService.CurrencyExchangeService;

public class SaleDocumentService {

	public static void main(String[] args) {
		CurrencyExchangeService instance = CurrencyExchangeService.getInstance();
		Calendar calendar = Calendar.getInstance();
		calendar.set(2014, 8, 1);
		
		Calendar calendar1 = Calendar.getInstance();
		calendar1.set(2014, 8, 31);
		
		List<CurrencyExchangeDTO> currencyExchange = instance.getCurrencyExchange(CurrencyType.USD, calendar.getTime(), calendar1.getTime());

		for (CurrencyExchangeDTO currencyExchangeDTO : currencyExchange) {
			System.err.println(currencyExchange);
		}
		
//		CurrencyType biggestDifferenceExchange = instance.getBiggestDifferenceExchange(calendar.getTime(), calendar1.getTime());
		
		
//		System.out.println(biggestDifferenceExchange);
		
//		BigDecimal maxExchange = instance.getMixExchange(calendar.getTime(), calendar1.getTime(), CurrencyType.USD);
//		System.err.println(maxExchange);
	}

}
